Getting Baseline info

Hello,

 

Is it possible to get baseline info of a module with out opening it; I would like to list all the baselines of a module without opening them? Thank you.


EHcnck - Tue Jul 21 10:47:10 EDT 2015

Re: Getting Baseline info
llandale - Tue Jul 21 11:49:14 EDT 2015

In the GUI you can see the list of old baselines with basic information File menu >Baselines >View.  This information is available in DXL:

  • for bl in mod do
    for bl in all mod do

This requires the module (or one of its baselines) to be actually open.  The others need not be open.

There seems to  be another method using ModuleVersion; but I've never done it:

  • mv1 = some ModuleVersion of a ModName_
  • for mv2 in mv1 do
  • {  bl = baseline(mv2)
  • }

-Louie

Re: Getting Baseline info
EHcnck - Tue Jul 21 13:19:57 EDT 2015

llandale - Tue Jul 21 11:49:14 EDT 2015

In the GUI you can see the list of old baselines with basic information File menu >Baselines >View.  This information is available in DXL:

  • for bl in mod do
    for bl in all mod do

This requires the module (or one of its baselines) to be actually open.  The others need not be open.

There seems to  be another method using ModuleVersion; but I've never done it:

  • mv1 = some ModuleVersion of a ModName_
  • for mv2 in mv1 do
  • {  bl = baseline(mv2)
  • }

-Louie

Thank you for the reply, but wasn't able to get the second option funtional.

Re: Getting Baseline info
pommCannelle - Wed Jul 22 05:23:53 EDT 2015

EHcnck - Tue Jul 21 13:19:57 EDT 2015

Thank you for the reply, but wasn't able to get the second option funtional.

Perhaps i'm wrong, but I think there is no way to loop on baselines without open or load the module.
... hmm ... but perhaps you do not need to open the module right now ;)

If you can build a trigger able to set a module attribute with a list of  the baselines (when user sync the module for example... should be fast enough to be unnoticed ;) )... you should be able to access it using the ModuleProperties feature.

Post your code if you are in trouble ;)